<?php
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport('joomla.application.component.view');
jimport('joomla.filter.output');
jimport('joomla.html.pane');

class igcategoriesViewIgconfig extends JView {

	function display()
	{
		JRequest::setVar('tmpl', 'component');

		$params = &$this->get('params');
		$document = & JFactory::getDocument();
		$document->setTitle( JText::_('Edit Preferences') );
		JHTML::_('behavior.tooltip');
?>
	<form action="index.php" method="post" name="adminForm" autocomplete="off">
		<fieldset>
			<div style="float: right">
				<button type="button" onclick="submitbutton('save_config');window.top.setTimeout('window.parent.document.getElementById(\'sbox-window\').close()', 700);">
					<?php echo JText::_( 'Save' );?></button>
				<button type="button" onclick="window.parent.document.getElementById('sbox-window').close();">
					<?php echo JText::_( 'Cancel' );?></button>
			</div>
			<div class="configuration" >
				<?php echo JText::_('IGNITE GALLERY'); ?>
			</div>
		</fieldset>

		<fieldset>
			<legend>
				<?php echo JText::_( 'Configuration' );?>
			</legend>
			<?php
			
			$pane = JPane::getInstance();
			echo $pane->startPane('config');

			echo $pane->startPanel(JText::_('General'), 'config.general');
			echo $params['general']->render();
			echo $pane->endPanel();
			
			echo $pane->startPanel(JText::_('MODERATION'), 'config_moderation');
			echo $params['moderation']->render();
			echo $pane->endPanel();
			
			echo $pane->startPanel(JText::_('FRONTEND FORM FIELDS'), 'config.frontendacl');
			echo $params['frontend_fields']->render();
			echo $pane->endPanel();
			
			echo $pane->startPanel(JText::_('NEW ITEM DEFAULTS'), 'config.newitem');
			echo $params['newitem']->render();
			echo $pane->endPanel();
			
			echo $pane->startPanel(JText::_('UPLOADS'), 'config.uploader');
			echo $params['uploader']->render();
			echo $pane->endPanel();
			
			echo $pane->endPane();
			?>
		</fieldset>


		<input type="hidden" name="controller" value="igcategories" />
		<input type="hidden" name="option" value="com_igallery" />
		<input type="hidden" name="tmpl" value="component" />
		<input type="hidden" name="task" value="" />
	</form>
<?php
	}
}

